package com.yhy.tcpserver.outbound;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;

/**
 * describe:
 *
 * @author helloworldyu
 * @data 2018/3/14
 */
public class SecondOutboundChannel extends ChannelOutboundHandlerAdapter{
	@Override
	public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
		System.out.println("=================secondoutbound=================");
		//传递到下一个 outboundHandlerAdapter
		ctx.write(msg,promise);
	}
}